const {DataTypes} = require('sequelize')
// const sequelize = require('../shared/sequelize')

module.exports = (sequelize) =>{
    // class Discuss extends Model{
    // console.log(sequelize)
    // }
    // Discuss.init({
    const Client = sequelize.define('client',{
        username:{type:DataTypes.STRING,allowNull:false,comment:'用户账号'},
        password:{type:DataTypes.TEXT('tiny'),allowNull:false,comment:'用户密码'},
        name:{type:DataTypes.STRING,comment:'用户名'},
        userType:{type:DataTypes.STRING,comment:'用户类型'},
        token:{type:DataTypes.STRING,comment:'用户token'}
    })
    return Client
}